package com.shanzmoo.db.order.entity.dto;

import com.shanzmoo.base.constant.e.PayTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 订单支付请求信息
 *
 * @author： Gzhao 2021/1/9
 */
@Data
@ApiModel("订单支付请求信息")
public class OrderPayDTO implements Serializable {

    private static final long serialVersionUID = 1758L;

    @NotBlank(message = "订单号不允许空")
    @ApiModelProperty("订单号")
    private String orderNo;

    @NotNull(message = "支付类型不允许空")
    @ApiModelProperty(value = "支付类型", example = "Wx")
    private PayTypeEnum payType;

    @NotBlank(message = "请输入支付条码")
    @ApiModelProperty(value = "付款条码", example = "1345 0904 0138 919255")
    private String payCode;

}
